package com.lzy.product.apis.impl;

import com.lzy.product.apis.OrderProjectRecordServiceApi;
import com.lzy.product.dtos.OrderProjectRecordDto;
import com.lzy.product.service.OrderProjectRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderProjectRecordServiceApiImpl implements OrderProjectRecordServiceApi {
    @Autowired
    private OrderProjectRecordService orderProjectRecordService;

    @Override
    public List<OrderProjectRecordDto> selectOrderProjectRecordByOrderId(Long id) {
        return orderProjectRecordService.selectOrderProjectRecordByOrderId(id);
    }

    @Override
    public Boolean insert(OrderProjectRecordDto dto) {
        return orderProjectRecordService.insert(dto) > 0;
    }

}
